package com.ctw.mapmycity.ws.impl;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

import com.ctw.mapmycity.ws.AuthService;

//@BindingType(JSONBindingID.JSON_BINDING)
@WebService(
		name = "AuthService",
		targetNamespace = "http://mapmycity.com/authSevice",
		endpointInterface = "com.ctw.mapmycity.ws.AuthService"
	)
public class AuthServiceImpl implements AuthService {

	@Override
	@WebMethod
	public String registerAccount(
			@WebParam(name = "email") String user,
			@WebParam(name = "password") String password,
			@WebParam(name = "accountType") String accountType) {
		
		return "ksufhi4756wiyfhjhfw45";
	}

	@Override
	@WebMethod
	public String authenticate(
			@WebParam(name = "email") String email,
			@WebParam(name = "password") String password,
			@WebParam(name = "accountType") String accountType) {
		
		return "ksufhi4756wiyfhjhfw45";
	}

	@Override
	@WebMethod
	public boolean checkToken(
			@WebParam(name = "email") String email,
			@WebParam(name = "token") String password) {

		// TODO Auto-generated method stub
		return false;
	}
}
